<div class="bg-light lter b-b wrapper-md ng-scope">
    <h4 class="m-n font-thin">流水管理</h4>
    <button ui-sref="app.revenueSetting" class="btn-back btn btn-dark btn-sm btn-rounded">
        返回
    </button>
</div>
<div class="wrapper-md" ng-controller="revenueSettingAddCtrl">
    <div class="panel panel-default">
        <div class="panel-heading m-n">
            添加流水信息
        </div>
        <div class="panel-body">
            <form class="form-horizontal" name="revenueSettingForm" method="post"  ng-submit="addRevenueSetting()">
                <div class="form-group">
                    <label class="col-sm-2 control-label">类型</label>
                    <div class="col-sm-5">
                        <select name="type" class="form-control" ng-model="revenueSetting.type"  required>
                            <option  value="">请选择类型</option>
                            <option value="0">商家&#45;推荐&#45;商家</option>
                            <option value="1">商家&#45;推荐&#45;用户</option>
                            <option value="2">用户&#45;推荐&#45;商家</option>
                        </select>
                    </div>
                    <div class="col-sm-5 form-text" ng-if="revenueSettingForm.type.$touched">
                        <span class="text text-danger" ng-if="revenueSettingForm.type.$error.required">问题类型是必选的</span>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label">流水值</label>
                    <div class="col-sm-5">
                        <input type="text" name="value" class="form-control"  ng-model="revenueSetting.value" placeholder="例:0.5%" required>
                    </div>
                    <div class="col-sm-5 form-text" ng-if="revenueSettingForm.value.$touched">
                        <span class="text text-danger" ng-if="revenueSettingForm.value.$error.required">问题是必填的</span>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-2">
                        <button type="submit" class="btn btn-success">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>




